<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>聊天室</title>

        <link
            href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
            rel="stylesheet"
            integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
            crossorigin="anonymous"
        />

        <link
            rel="stylesheet"
            href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
        />
        <link rel="stylesheet" href="style.css" />
    </head>
    <body class="bg-light bg-gradient">
        <div class="container p-2">
            <div class="card">
                <div
                    class="
                        card-header
                        bg-success
                        text-light
                        d-flex
                        justify-content-between
                        align-items-center
                    "
                >
                    <span
                        ><i class="bi bi-gear-wide-connected"></i
                        >&nbsp;聊天室</span
                    >
                    <a class="text-light">离开聊天室>></a>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="panel-container col-sm-12 col-md-4">
                            <!--style="border-right: 1px solid rgba(0,0,0,.125)"-->
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item">
                                    <i class="bi bi-door-open-fill"></i>&nbsp;<b
                                        >房间</b
                                    >
                                </li>
                                <li class="list-group-item">JavaScript</li>
                            </ul>
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item">
                                    <i class="bi bi-person-lines-fill"></i
                                    >&nbsp;<b>用户</b>
                                </li>
                                <li class="list-group-item">张三</li>
                                <li class="list-group-item">里四</li>
                                <li class="list-group-item">王五</li>
                                <li class="list-group-item">赵六</li>
                            </ul>
                        </div>
                        <div class="col-sm-12 col-md-8" style="height: 600px; overflow-y: scroll;">
                            <div class="container">
                                <div class="d-flex justify-content-end my-3">
                                    <div
                                        class="
                                            card
                                            bg-success
                                            text-light
                                            w-30
                                        "
                                    >
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>我 08:00</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="d-flex justify-content-start my-3">
                                    <div class="card w-30">
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>张三 08:10</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="d-flex justify-content-end my-3">
                                    <div
                                        class="
                                            card
                                            bg-success
                                            text-light
                                            w-30
                                        "
                                    >
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>我 08:00</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="d-flex justify-content-start my-3">
                                    <div class="card w-30">
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>张三 08:10</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="d-flex justify-content-end my-3">
                                    <div
                                        class="
                                            card
                                            bg-success
                                            text-light
                                            w-30
                                        "
                                    >
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>我 08:00</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="d-flex justify-content-start my-3">
                                    <div class="card w-30">
                                        <div class="card-body">
                                            <div class="card-title">
                                                <b>张三 08:10</b>
                                            </div>
                                            <div class="card-text">
                                                Lorem ipsum dolor sit amet.Lorem
                                                ipsum dolor sit amet.
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--end of card-body-->
                <div class="card-footer">
                    <div class="input-group">
                        <input
                            type="text"
                            class="form-control"
                            placeholder="输入消息"
                        />
                        <button class="btn btn-success">发送</button>
                    </div>
                </div>
            </div>
        </div>
        <script
            src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
            crossorigin="anonymous"
        ></script>
    </body>
</html>
